<%@ page 
language="java" 
import="java.util.*" 
import="com.csd.action.manager.TeacherDataImportAction"
pageEncoding="utf-8"
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  
    <title>数据导入</title>
   
	<link href="<%=path%>/admin/css/admin_right.css" rel="stylesheet" type="text/css" />

  </head>
  
  <body>
    <div class="main">
    	<h1>教师数据导入</h1>
    	<hr />
    	<h3>教师数据导入</h3>
    	<s:form action="teacherDataImport.action" method="post"  enctype="multipart/form-data">
    	<table width="80%" cellspacing="10px">
    		<tr valign="middle">
    			<td class="form_strong" width="200px">说明：</td>
    			<td>教师的账户数据导入，批量初始化教师的用户数据，包括用户的登录名，密码，和真实姓名</td>
    		</tr>
    		<tr>
    			<td colspan="2">    				
    					<input type="hidden" name="type" value="<%=TeacherDataImportAction.DATA_TYPE_TEACHER%>" />   
    					<table width="100%"> 
    						<tr>
    							<td class="form_strong" width="200px">导入方式：</td>
    							<td>
			    					<select name="method" size="1">
			    						<option value="0">仅更新或添加数据</option>
			    						<option value="1">导入前清空现有数据</option>    									
			    					</select>
		    					</td>
    						</tr>
    						<tr>
    							<td class="form_strong">选择文件：</td>					
								<td><input type="file" name="upload" /></td>
							</tr>
							<tr>							
	     						<td colspan="2" align="center"><input type="submit" value=" 导入 " /></td>
	     					</tr>
     					</table>
    			</td>
    		</tr>
    		<tr>
    			<td colspan="2">
    				<a href="<%=path%>/fileDownload.action?path=userfile\\example\\rpms_teacher.xls">示例下载</a>
    			</td>
    		</tr>
    	</table>
    	</s:form>    	
    	
    </div>
  </body>
</html>
